sbdf2devicepath: converts SBDF into device path.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Apr 2009 08:59:16 +0000 (09:59 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 9 Apr 2009 08:59:16 +0000 (09:59 +0100)
commit35761fcc8bd3f014c7cd57f4d4849eb7d76b205d
treed3678323d9ddb931dd982fb0facd4b848755ac7f
parent710cd6ce97b54f7733a8f48ba69c2a0b13140b96
sbdf2devicepath: converts SBDF into device path.

'SBDF' format is "[SEG#:]BUS#:DEV#.FUNC#"
  ex) 0000:0a:1f.3
Device path format is "HID[:UID]-DEV#.FUNC#[-DEV#.FUNC#[...]]"
  ex) PNP0A08:0-2.0-0.0

The command can be executed as follows.

# sbdf2devicepath 0a:1f.3
PNP0A08:0-2.0-0.0

Signed-off-by: Yuji Shimada <shimada-yxb@necst.nec.co.jp>
tools/misc/sbdf2devicepath [new file with mode: 0644]